package com.itheima.tanhua.web;

import com.itheima.tanhua.service.ManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/dashboard")
public class ManagementController {

    @Autowired
    private ManagementService managementService;


    @GetMapping("/users")
    public ResponseEntity dashboarrd(Integer type, Date sd,Date ed){

        managementService.dashboarrd(type,sd,ed);
        return null;
    }

}
